import React,{ Component } from "react";

class Input extends Component{
  constructor(){
    super()
    this.inputRef = React.createRef()
    this.focusInput = this.focusInput.bind(this)
  }
  focusInput(){
    this.inputRef.current.focus()
  }
  render(){
    return (
      <div>
        <input type="text" ref={this.inputRef} />
      </div>
    )
  }
}

export default Input